from app.server.flask_app.model_views.CustomModelView import CustomModelView
from app.server.flask_app.model_views.mixins.AuthMixin import AuthMixin


class UserModelView(AuthMixin, CustomModelView):

    column_editable_list = [
        "telegram_id",
        "is_active",
        "balance",
        "accounts_added",
        "likes",
        "comments",
        "uniques",
        "documents_generated",
        "whitepages_generated",
    ]
    column_searchable_list = ["telegram_id", "is_active"]
    column_filters = column_editable_list
